package cn.zhuzicc.authserver.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * ClassName: AccessTokenConfig
 * Description: 配置token口令存储策略
 * date: 2020/9/28 14:18
 *
 * @author zhuzi
 * @since JDK 1.8
 */
@Configuration
public class AccessTokenConfig {

    @Bean
    public TokenStore tokenStore() {
        return new InMemoryTokenStore();
    }
}
